package week7.homework;

public class ademicbook extends Books{
    private int level;
    public ademicbook(String name, String type,String author,double price,int pages,int level)
    {
        super(type, name, author, price, pages);
        this.level=level;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }
    public String toString()
    {
        return "\n种类"+this.getType()+"\t书名"+this.getName()+"\t作者"+ this.getAuthor()+"\t价格"+this.getPrice()+this.getLevel();
    }
}
